const Express = require('express')
const cors = require('cors')
const app = new Express()
app.use(cors())
app.use(Express.json())
app.use(Express.urlencoded())
app.get('/', (req, res) => {
  res.send('服务端已响应')
  console.log('服务端已响应');
})
app.post('/login', (req, res) => {
  console.log(req.body);
  res.send(req.body)
})
app.put('/list', (req, res) => {
  res.send(req.body)
  console.log(req.body);

})
let serve = app.listen('5501', () => {
  console.log('服务已启动');
})